import { COUNTER_DECREMENT, COUNTER_INCREMENT } from '../constants'
// 定义一个 actionCreator => 创建 action => 接收 payload => 返回值就是 action
export const decrement = (payload) => ({
  type: COUNTER_DECREMENT,
  payload,
})

export const increment = (payload) => ({
  type: COUNTER_INCREMENT,
  payload,
})
